package com.db.dbcloud;

import net.tsz.afinal.FinalActivity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

public class SplashActivity extends FinalActivity {
	private final int SPLASH_DISPLAY_MILLIS = 3000;
	
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		super.setContentView(R.layout.activity_splash);
		new Handler().postDelayed(new Runnable() {
			
			@Override
			public void run() {
				Intent mainIntent = new Intent(SplashActivity.this, LoginActivity.class);
				SplashActivity.this.startActivity(mainIntent);
				SplashActivity.this.finish();
			}
		}, SPLASH_DISPLAY_MILLIS);
	}
}
